get Suggestions
abstract fun getSuggestions(input: String, cursor: Int, choiceValidator: ChoiceValidator<T>): CompletableFuture<Suggestions>
Return a future of suggestions based on inputs and validation
Return
CompletableFuture<Suggestions> a future with the total set of suggestions applicable to the input request.
Author
fzzyhmstrs
Since
0.2.6
Parameters
input
the raw text input to build suggestions from
cursor
the cursor position relative to the input string. 0 is the start of the string, the string size would be a cursor "live" at the end of the input.
choice Validator
ChoiceValidator validates possible choices, providing a mechanism for filtering from whatever base set of information this suggester is pulling from.